<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>系统登录-壹生作者平台</title>
<%@include file="/WEB-INF/fragment/header.jsp" %>
<%--<script language="javascript" src="${pageContext.request.contextPath}/resource/js/func.js"></script>--%>
<%--<script language="javascript" src="${pageContext.request.contextPath}/resource/js/login.js"></script>--%>
<script type="text/javascript" >  
        /**有父窗口则在父窗口打开*/  
        if(self!=top){top.location=self.location;}
        $(document).ready(function(){
            $(".login").height($(document).height());
            $("#loginForm").submit(function(){
                if(!checkPhone($("#phone").val())){
                    popBox("提示","请输入正确手机号");
                    $("#phone").focus();
                    return false;
                }
                if($("#pwd").val()==""){
                    popBox("提示","请输入密码");
                    $("#pwd").focus();
                    return false;
                }
            });
            $(".login_ipt").focus(function(){
                $(".login_err").html("").hide();
            });
        });
</script>
</head>

<body>
<div class="login">
	<div class="logo">
    	<%--<img src="${pageContext.request.contextPath}/resources/common/images/login_logo.png" />--%>
	</div>
  <div class="login_cnt">
    	<h4><span>登录</span><a href="${pageContext.request.contextPath}/media/user/open/view_regist.do">>我还没有注册</a></h4>
    	<form action="${pageContext.request.contextPath}/login" method="post" id="loginForm">
            <input name="username" type="text" class="login_ipt user" id="phone" placeholder="手机号" <c:if test="${not empty username }">value="${username}"</c:if>/>
            <input name="password" type="password" class="login_ipt pwd" id="pwd" placeholder="密码" />
            <div class="cl">
           	  <label class="ckbox fl"><input name="rememberMe" type="checkbox" value="true" id="rememberMe" /> 记住账号</label>
   			  <%--<a href="${pageContext.request.contextPath}/media/user/open/forgetPassword.do" class="cant fr">忘记密码？</a>--%>
            </div>
            <div class="login_btn">
            	<input id="login" type="submit" class="btn" value="登录" />
            </div>
      </form>
    
    </div>
    <c:if test="${not empty error}">
    <div class="login_err">${error}</div>
    </c:if>
    <div class="copy">luma test. All rights reserved</div>
</div>
<%--<%@include file="/WEB-INF/fragment/adminBottom.jsp" %>--%>
</body>
</html>
